import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()


astar_path=np.array([
119, 131, 128, 
143, 132, 128, 
145, 133, 128, 
169, 141, 128, 


])
print astar_path
astar_path_x=np.array([])
astar_path_y=np.array([])
for i in range(0, len(astar_path), 3):
    astar_path_x=np.append(astar_path_x,[astar_path[i]])	
    astar_path_y=np.append(astar_path_y,[astar_path[i+1]])
print astar_path_x
print astar_path_y
# step=3
# astar_path_x=np.array([])
# for i in range(0,len(astar_path))
#     astar_path_x=np.array([astar_path_x,astar_path[i]])


after_change=np.array([
121, 136, 128, 
143, 133, 128, 
145, 134, 128, 
169, 142, 128, 

])


after_change_x=np.array([])
after_change_y=np.array([])
for i in range(0, len(after_change), 3):
    after_change_x=np.append(after_change_x,[after_change[i]])	
    after_change_y=np.append(after_change_y,[after_change[i+1]])
print after_change_x
print after_change_y


ax = fig.add_subplot(111)


ax.plot(-astar_path_y,astar_path_x,marker='x')
ax.plot(-after_change_y,after_change_x,marker='+')





plt.gca().set_aspect('equal', adjustable='box')


plt.grid()
plt.show()